//
//  Base_TitleBar.h
//  TeamInformatization
//
//  Created by 李光磊 on 2019/4/3.
//  Copyright © 2019 SPIC. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

typedef NS_ENUM(NSInteger,Base_NavigationBarStyle) {
    Base_NavigationBar_None,
    Base_NavigationBar_Back, //统一 白色返回按钮
    Base_NavigationBar_Back_Home, //home键
};

@protocol Base_NavigationBarDelegate;

@interface Base_TitleBar : UIView {
    
    UIView * backgroundV;
    UILabel * titleLabel;
    UIImageView *titleImageView;
}

@property (nonatomic) id <Base_NavigationBarDelegate> titleBardelegate;
@property (nonatomic, strong) NSString * title;
@property (nonatomic, assign) CGFloat backGroundAlpha;
@property (nonatomic, strong) UIImage *titleImage;
@property (nonatomic, strong) NSString *titleImageURL;
@property (nonatomic, strong) UIImageView * logoImageV;
@property (nonatomic, strong) UIColor *titleColor;
@property (nonatomic, strong) UIButton * leftButton;
@property (nonatomic, strong) UIButton * rightButton;
@property (nonatomic, strong) UIButton * rightSecondButton;
@property (nonatomic) Base_NavigationBarStyle leftButtonStyle;
@property (nonatomic) Base_NavigationBarStyle rightButtonStyle;
@property (nonatomic) Base_NavigationBarStyle rightSecondButtonStyle;

@end

@protocol Base_NavigationBarDelegate <NSObject>

@optional
/** 点击左边按钮**/
- (void)baseNavigationBarLeftButtonClick:(UIButton *)button;

@optional
/** 点击右边按钮 **/
- (void)baseNavigationBarRightButtonClick:(UIButton *)button;

@optional
/** 点击右边第二个按钮 **/
- (void)baseNavigationBarRightSecondButtonClick:(UIButton *)button;

@end

NS_ASSUME_NONNULL_END
